from flask import Flask, render_template
import datetime

server = Flask(__name__)


@server.route('/', methods=['post', 'get'])
def show():
    now = str(datetime.datetime.now())  # 把当前时间转换成字符串
    # return "当前的时间是：%s" % now
    return render_template("show2.html")

server.run(debug=True, port=8888)
